package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author zhangyu
 * @date 2019/6/10
 * 滞后的作业
 */
public class LagInfoBean implements Parcelable {
    private int id;
    private String name;
    private int count;
    private ArrayList<CommonBean> maintenanceList;
    private ArrayList<CommonBean> repairList;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public ArrayList<CommonBean> getMaintenanceList() {
        return maintenanceList;
    }

    public void setMaintenanceList(ArrayList<CommonBean> maintenanceList) {
        this.maintenanceList = maintenanceList;
    }

    public ArrayList<CommonBean> getRepairList() {
        return repairList;
    }

    public void setRepairList(ArrayList<CommonBean> repairList) {
        this.repairList = repairList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeInt(this.count);
        dest.writeTypedList(this.maintenanceList);
        dest.writeTypedList(this.repairList);
    }

    public LagInfoBean() {
    }

    protected LagInfoBean(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.count = in.readInt();
        this.maintenanceList = in.createTypedArrayList(CommonBean.CREATOR);
        this.repairList = in.createTypedArrayList(CommonBean.CREATOR);
    }

    public static final Parcelable.Creator<LagInfoBean> CREATOR = new Parcelable.Creator<LagInfoBean>() {
        @Override
        public LagInfoBean createFromParcel(Parcel source) {
            return new LagInfoBean(source);
        }

        @Override
        public LagInfoBean[] newArray(int size) {
            return new LagInfoBean[size];
        }
    };
}
